220 VTAB 18: CALL -868: HTAB 5: INPUT "DO YOU WANT INSTRUCTIONS? (Y/N) ";Q$: IF Q$ = "N" THEN 250
230 IF Q$ < >"Y" THEN PRINT G$: GOTO 220
240 GOSUB 1510: REM INSTRUCTIONS
250 HOME : VTAB 10: INPUT "WHAT IS YOUR NAME? ";P$
260 VTAB 14: CALL -868: INPUT "PLAY TO WHAT SCORE? (100-500) ";TP$:TP = VAL(TP$): IF TP <100 OR TP >500 THEN PRINT G$: GOTO 260
270 P = 0:C = 0:SC = 0:SP = 0: FOR I = 1 TO 9:CN(I) = I:PN(I) = I: NEXT :A = PEEK(78):A = A +1: FOR I = 1 TO A: POKE 202,A:NR = RND(1): NEXT : GOSUB 1010: GOSUB 1310: GOSUB 1410
300 REM PLAYER'S TURN
310 POKE -16368,0: GOSUB 1310: VTAB 18: CALL -958: INPUT "HOW MANY NUMBERS WILL YOU TAKE OFF? ";N$: IF LEN(N$) = 0 THEN 310
320 N = VAL(N$): IF N = 0 THEN 560
330 IF N <5 THEN 350
340 PRINT : PRINT "C'MON NOW, ";P$;"!";G$: PRINT "WHO ARE YOU TRYING TO KID!": GOSUB 1200: GOTO 310
350 FOR I = 1 TO N
360 VTAB 19 +I: HTAB 12: INPUT "WHICH ONE? ";NB$: IF LEN(NB$) = 0 THEN 360
370 NB(I) = VAL(NB$): IF NB(I) <1 OR NB(I) >9 THEN PRINT "THAT NUMBER IS NOT ON THE BOARD!";G$: GOSUB 1200: GOTO 310
380 IF PN(NB(I)) = 0 THEN PRINT "YOU ALREADY TOOK THAT ONE!";G$: GOSUB 1200: GOTO 310
390 NEXT
400 FOR I = 1 TO N:PT = PT +NB(I):PN(NB(I)) = 0: NEXT : IF PT = TD THEN 420
410 GOTO 1610
420 IF N = 2 OR N = 3 OR N = 4 THEN 460
430 IF N = 3 OR N = 4 THEN 480
440 IF N = 4 THEN 510
450 GOTO 530
460 IF NB(1) = NB(2) THEN 1610
470 GOTO 530
480 IF NB(1) = NB(3) THEN 1610
490 IF NB(2) = NB(3) THEN 1610
500 GOTO 530
510 IF NB(1) = NB(4) THEN 1610
520 IF NB(3) = NB(4) THEN 1610
530 FOR I = 1 TO N: VTAB 2: HTAB 10 +2 *NB(I): PRINT " ";: VTAB 4: HTAB 10 +2 *NB(I): PRINT "*": NEXT
540 P = P +PT: VTAB 9: HTAB 5: PRINT P:PT = 0:SP = SP +TD: IF SP < >45 THEN GOSUB 1410: GOTO 310
550 VTAB 23: HTAB 5: PRINT "OH, OH! YOU GOT THEM ALL!!!": GOSUB 1200
1200 FOR D = 1 TO 4000: NEXT : RETURN : REM DELAY LOOP
1300 REM TELL WHOSE TURN IT IS
1310 VTAB 16: HTAB 12: INVERSE : PRINT "IT'S YOUR TURN...": NORMAL : RETURN
1320 VTAB 16: HTAB 13: INVERSE : PRINT "IT'S MY TURN...": NORMAL : RETURN
1400 REM ROLL DICE
1410 VTAB 18: CALL -958: VTAB 23: HTAB 8: PRINT "<<PRESS KEY TO END ROLL>>"
1420 POKE -16368,0: FOR I = 1 TO 200 + INT( RND(1) *100):D1 = INT( RND(1) *6) +1:D2 = INT( RND(1) *6) +1: VTAB 10: HTAB 15: INVERSE : PRINT D1;: HTAB 25: PRINT D2: NORMAL : IF PEEK( -16384) >127 THEN 1440
1430 NEXT
1440 TD = D1 +D2: POKE -16368,0: RETURN
1500 REM INSTRUCTIONS
1510 HOME : PRINT "INSTRUCTIONS:": PRINT : PRINT "THE OJECT OF THIS GAME IS TO TAKE OFF": PRINT "AS MANY OF THE NUMBERS ON THE BOARD AS": PRINT "POSSIBLE."
1520 PRINT : PRINT "WITH EACH ROLL OF THE DICE YOU CAN": PRINT "REMOVE ANY OF THE NUMBERS THAT ADD UP": PRINT "TO YOUR DICE ROLL."
1530 PRINT : PRINT "FOR EXAMPLE: IF THE NUMBERS ON THE DICE": PRINT "ARE 3 AND 2, YOU COULD REMOVE EITHER": PRINT "THE 5 OR THE 3 AND 2 OR THE 4 AND 1."
1540 PRINT : PRINT "YOUR TURN WILL CONTINUE UNTIL YOU CANNOT";: PRINT "REMOVE ANY MORE NUMBERS. THEN IT WILL BE";: PRINT "THE COMPUTER'S TURN."
1550 PRINT : PRINT "YOU CAN HELP THE COMPUTER BY PRESSING A KEY TO STOP THE DICE ROLL, BUT YOU DON'THAVE TO."
1560 VTAB 23: HTAB 12: INVERSE : PRINT "<<PRESS ANY KEY>>": NORMAL : WAIT -16384,128: POKE -16368,0: RETURN
1600 REM CHEATING!
1610 HTAB 8: FLASH : PRINT "YOU'RE CHEATING!!";: NORMAL : PRINT G$;G$;G$;G$;G$;G$;" I QUIT!!": END